import request from '@/utils/request'

export const getPostPage = async (data) => {
    return await request.get('/selectPost/page', {params: data})
}

export const getPostOne = async (id) => {
    return await request.get('/getPostInfo/' + id)
}

export const selectPostReplyList = async (id) => {
    return await request.get('/selectPostReply', {params: {postId: id}})
}

export const addPostReply = async (data) => {
    return await request.post('/insetPostReply', data)
}

export const addPostOne = async (data) => {
    return await request.post('/insetPost', data)
}

